from django.conf.urls import url
from rest_framework.routers import DefaultRouter
from . import serializers
from book import views

urlpatterns = [
    # 历史订单
    url(r'^book/historyBook$', views.HistoryBook.as_view()),
    # 正在进行订单
    url(r'^book/nowBook$', views.NowBook.as_view()),
    # 订单续订
    url(r'^book/extendBook$', views.ExtendBook.as_view()),
    # 结束订单
    url(r'^book/endBook$', views.EndBook.as_view()),
    # 所有订单
    url(r'^book/allBook/$', views.AllBook.as_view()),
    # 提交订单
    url(r'^book/bookEquipment$', views.BookEquipment.as_view()),
    # 订单数据统计
    url(r'^book/bookStatistics', views.BookStaticView.as_view()),
]
